/**
 * CS490 Fall 2007
 * Created on Dec 2, 2007
 * Name: Carinna Parker
 * Username: crpyq9
 */
 package StratelegoGame;

import java.awt.Component;


import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
 public class ScrollPaneFactory {
	 private ScrollPaneFactory(){}
		
		public static JScrollPane createPane(Component c)
		{
			JScrollPane pane = new JScrollPane(c, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
					ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);		
			return pane;
		}
}


